package erfgame.core.world.memory;


import erfgame.core.memory.ByteArray3DMemoryPool;
import erfgame.core.memory.MemoryPool;
import erfgame.core.world.World;

public class WorldTerrainMemoryPoolFactory implements
		WorldMemoryPoolFactory<byte[][][]> {

	public MemoryPool<byte[][][]> createMemoryPool(World world) {
		return new ByteArray3DMemoryPool(
				world.getBlockWidth(), 
				world.getBlockHeight(), 
				world.getBlockDepth()
		);
	}
}
